-- GENERATED SPELL FOR [Maraudine Marauder] --


function spell0_4659(pUnit, Event) --@Berserker Stance,Self--
pUnit:FullCastSpellOnTarget(7366,pUnit)
pUnit:RegisterEvent('Sorts_4659', 594, 1)
end

function spell1_4659(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4659', 616, 1)
end

function Sorts_4659(pUnit, Event)
local choix_sorts_4659 = math.random(0, 1)
if choix_sorts_4659 == 0 then
pUnit:RegisterEvent('spell0_4659', 1, 1)
end
if choix_sorts_4659 == 1 then
pUnit:RegisterEvent('spell1_4659', 1, 1)
end
end

function mob4659_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4659', math.random(1500, 3000), 1)
end

function mob4659_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4659_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4659_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4659, 1, 'mob4659_Action')
RegisterUnitEvent(4659, 2, 'mob4659_Leave')
RegisterUnitEvent(4659, 3, 'mob4659_Kill')
RegisterUnitEvent(4659, 4, 'mob4659_Die')
